package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 二手商品订单表
 * </p>
 *
 * @author admin
 * @since 2025-10-25
 */
@Data
@TableName("secondhand_order")
public class SecondhandOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 二手商品ID
     */
    @TableId(value = "secondHandId", type = IdType.AUTO)
    private Long secondHandId;

    /**
     * 关联订单ID
     */
    @TableField("orderId")
    private Long orderId;

    /**
     * 商品名称
     */
    @TableField("productName")
    private String productName;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品描述
     */
    @TableField("description")
    private String description;

    /**
     * 图片URL，多个用逗号分隔
     */
    @TableField("images")
    private String images;

    /**
     * 商品分类
     */
    @TableField("category")
    private String category;

    /**
     * 新旧程度
     */
    @TableField("product_condition")
    private String productCondition;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private LocalDateTime updateTime;
}
